<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index05</title>
</head>
<body>


<h1 th:if="${flag=='yes'}">这个好</h1>
<h1 th:unless="${flag=='yes'}">这个不好</h1>
<br>
<hr>
<div th:switch="${menu}">
    <p th:case="admin">user is admin</p>
    <p th:case="${manager}">user is manager</p>
</div>




</body>
</html>